//
//  InputPayItemModel.m
//  BaseProject
//
//  Created by 王盼盼 on 2024/9/6.
//  Copyright © 2024 wangpanpan. All rights reserved.
//

#import "InputPayItemModel.h"

@implementation InputPayItemModel
- (instancetype)init {
    if (self = [super init]) {
        self.periods = 1;
    }
    return self;
}
- (InputPayType)payType {
    if ([self.Id isEqualToString:@"WECHATPAY"]) {
        return InputPayTypeWeChatPay;
    } else if ([self.Id isEqualToString:@"ALIPAY"]) {
        return InputPayTypeAlipay;
    } else if ([self.Id isEqualToString:@"YUNPAY"]) {
        return InputPayTypeYunPay;
    } else {
        return InputPayTypeNone;
    }
}
- (BOOL)hasPeriods {
    return [self.Id isEqualToString:@"UNION"];
}
@end
